#include <iostream>
using namespace std;
int maxNum = 1;
int const A[11] = {0,0,1,1,1,1,6,6,6,6,6};


int main() {
	int max = 1;
	for (int i = 0;i < 11-1; i++) {
		if (A[i] == A[i+1]) max++;
		else {
			if (max > maxNum)
				maxNum = max;
			max = 1;
		}
	}
	if ((maxNum * 2) > 11 || (max * 2) > 11){
		cout << "This array hava master elements " << endl;
	} else {
		cout << "Don't hava" << endl; 
	}
	return 0;
}

